<template>
    <div>
       <button @click="isOpen = true">打开</button> 
       <Teleport to="#footer">
       <div v-if="isOpen">
           <p>这是一个底部弹窗</p>
           <button @click="isOpen = false">关闭</button>
       </div>
       </Teleport>
    </div>
</template>
<script setup>
import { ref } from 'vue'

    const isOpen = ref(false)

</script>

<style lang="">
    
</style>